package com.kawa.fallback;

import com.kawa.pojo.User;
import com.kawa.remote.UserRemote;
import org.springframework.stereotype.Component;

@Component
public class UserRemoteFallBack  implements UserRemote {
    @Override
    public String getUserById(Long id) {
        System.out.println("进入服务熔断处理....");
        return "当前用户不存在！";
    }

    @Override
    public User addUser(User user) {
        return null;
    }
}
